using UnityEditor;
using UnityEngine;
public enum RewardType { merchant,BlackSmith,None};

public enum QuestType {Kill,Talk,Delivery };

[CreateAssetMenu(menuName = "RPG Setup/Quest Data/New Quest", fileName = "Quest - ")]
public class QuestDataSO : ScriptableObject
{
    public string questSaveId;

    [Space]
    public string questName;

    [TextArea] public string description;
    [TextArea] public string questGoal;
    [TextArea] public string questTip;
    public string questTargetId;
    public int requireAmount;

    [Header("Reward")]
    public RewardType rewardType; //指定该任务是哪个的任务/merchant?BlackSmith
    public QuestType questType;
    public Inventory_Item[] itemToDelivery;
    public Inventory_Item[] rewardItems;
    public int rewardGold;

#if UNITY_EDITOR
    private void OnValidate()
    {
        string path = AssetDatabase.GetAssetPath(this);
        questSaveId = AssetDatabase.AssetPathToGUID(path);
    }
#endif

}
